package com.jzo2o.customer.controller.open;

import com.jzo2o.customer.model.dto.request.InstitutionRegisterReqDTO;
import com.jzo2o.customer.service.IServeProviderService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Api("服务机构端-机构账号注册相关接口")
@RestController()
@RequestMapping("/open/serve-provider")
public class RegisterController {
    @Resource
    private IServeProviderService serveProviderService;

    @ApiOperation(value = "机构账号注册")
    @PostMapping("/institution/register")
    @ApiImplicitParam(name = "dto", value="机构注册的请求参数",required = true,dataTypeClass = InstitutionRegisterReqDTO.class)
    public void institutionRegister(@RequestBody InstitutionRegisterReqDTO dto){
        serveProviderService.institutionRegister(dto);
    }

}
